package com.ph.irp.base.usermanage.dao;

import java.util.List;

import com.ph.irp.model.PBasePurviewUser;

public interface PBasePurviewUserDAO {
	public boolean isExistedUser(String name, String password) throws Throwable;

	public boolean isExistedUser(String name) throws Throwable;

	public List<PBasePurviewUser> getUserListByUserName(String userName)
			throws Throwable;

	public List<PBasePurviewUser> getUserListByUserNameExcludeCurrentUserID(
			String userName,int userID) throws Throwable;

	public List<PBasePurviewUser> getAllUser() throws Throwable;
	
	public List<PBasePurviewUser> getAllUserExcludeCurrentUserID(int userID) throws Throwable;

	public List<Integer> getAllUserIds() throws Throwable;

	public void addUser(PBasePurviewUser user) throws Throwable;

	public PBasePurviewUser getUserByUserId(String userId) throws Throwable;

	public void editUser(PBasePurviewUser user) throws Throwable;

	public void deleteUser(String deleteIds) throws Throwable;

	public PBasePurviewUser getUserByUserNameAndPassword(String name,
			String password) throws Throwable;

}
